<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="layout/blank"><!-- layout文件路径-->
<head>
    <title>资源列表</title>
</head>
<body>
<div layout:fragment="content">
    <div class="row">
        <div class="col-md-12">

            <!-- START SIMPLE DATATABLE -->
            <div class="panel panel-default">
                <div class="panel-body">
                    <table class="table datatable_simple">
                        <thead>
                        <tr>
                            <th>名称</th>
                            <th>大小(MB)</th>
                            <th>上传时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="entity : ${list}" th:if="${entity.size>0}">
                            <td th:text="${entity.key}"></td>
                            <td th:text="${entity.size/1024/1024}"></td>
                            <td th:text="${#dates.format(entity.lastModified,'yyyy-MM-dd HH:mm:ss')}"></td>
                            <td><button type="button"  class="btn btn-success add-movie-btn">发布</button></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- END SIMPLE DATATABLE -->
        </div>
    </div>
</div>
</body>
</html>